package com.weishu.core.service.impl;

import com.alibaba.fastjson.JSON;
import com.weishu.common.core.utils.DateUtils;
import com.weishu.core.entity.*;
import com.weishu.core.mapper.CwReceiptPlanMapper;
import com.weishu.core.service.ICwReceiptPlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 收款计划表 服务实现类
 * </p>
 *
 * @author zgx
 * @since 2021-10-19
 */
@Service
public class CwReceiptPlanServiceImpl extends ServiceImpl<CwReceiptPlanMapper, CwReceiptPlan> implements ICwReceiptPlanService {

    @Override
    public List<CwReceiptPlan> getAllFzFee(CwReceiptPlan cwReceiptPlan) {
        return this.getBaseMapper().getAllFzFee(cwReceiptPlan);
    }

    @Override
    public CwDealPerDay getFzFee() {
        return this.getBaseMapper().getFzFee();
    }

    @Override
    public List<CwPaymentPlan> getFuKuanList(CwPaymentPlan cwReceiptPlan) {
        return this.getBaseMapper().getFuKuanList(cwReceiptPlan);
    }

    @Override
    public int saveFuKuanPlan(CwPaymentPlan cwReceiptPlan) {
        cwReceiptPlan.setCreateTime(DateUtils.getNowDate());
        return this.getBaseMapper().saveFuKuanPlan(cwReceiptPlan);
    }

    @Override
    public List<CwPaymentPlan> searchSfAll(CwPaymentPlan cwReceiptPlan) {
        return this.getBaseMapper().searchSfAll(cwReceiptPlan);
    }
}
